package cn.jdx.tools.md4img.tools;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class JdxToolsWriteString {
    public static void write(String content,String outputPath){
        BufferedWriter writer = null;
        try {
            writer = new BufferedWriter(new FileWriter(outputPath));
            writer.write(content);
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
            try {
                if (writer!=null){
                    writer.close();
//                    System.out.println("[JdxToolsWriteString.write]:关闭写出流");
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
